package com.woniuxy.house.service.serviceimpl;

import com.woniuxy.house.mapper.ConcernMapper;
import com.woniuxy.house.service.ConcernService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConcernServiceImp implements ConcernService {
    @Autowired
    private ConcernMapper concernMapper;
    @Override
    public void addPostConcern(Integer userId, Integer postId) {
        concernMapper.addPostConcern(userId,postId);

    }

    @Override
    public List<Integer> getPostConcernByUserId(Integer userId) {
        return concernMapper.getPostConcernByUserId(userId);
    }

    @Override
    public void deletePostConcernByUserIdAndPostId(Integer userId, Integer postId) {
concernMapper.deletePostConcernByUserIdAndPostId(userId,postId);
    }
}
